package cn.edu.wynu.oop.polymorphic;

public class Income {
    double income;

    public Income(double income) {
        this.income = income;
    }

    public void setIncome(double income) {
        this.income = income;
    }

    public double getTax() {
        return this.income * 0.1;
    }
}
